package com.ruoyi.edh.domain.dto;

import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("易订货-购买商品订单实体")
public class EdhOrderGoodsDto {
    /**
     * 购买商品集合
     */
    @ApiModelProperty("订单商品集合")
    @NotNull
    private List<EdhShippingGoodsDto> shippingGoodsDtoList;
    /** 优惠卷id */
    @ApiModelProperty("优惠卷id")
    private Long couponId;
    /** 购买用户id */
    @ApiModelProperty("购买用户id")
    @NotNull(message = "购买用户id不能为空")
    private Long userId;
    /** 地址id */
    @ApiModelProperty("地址id")
    @NotNull(message = "地址id不能为空")
    private Long addressId;

    /** 微店id */
    @Excel(name = "微店id")
    @ApiModelProperty("微店id")
    private Long microshopId;

    /** 订单原金额 */
    @ApiModelProperty("订单原金额")
    private BigDecimal orderAmount;
    /** 订单实付金额 */
    @ApiModelProperty("订单实付金额")
    private BigDecimal actualAmount;
    /** 订单运费金额 */
    @ApiModelProperty("运费金额")
    private BigDecimal shippingAmount;
    /** 订单总金额 运费+实付金额 */
    @ApiModelProperty("总金额（运费+实付金额）")
    private BigDecimal totalAmount;


}
